﻿$(document).ready(function () {
    var colours = ["", "bd2c33", "e49420", "ecdb00", "3bad54", "1b7db9"];

    $(".globelRating").each(function () {
        var rating = Math.round(parseInt($('span', this).html()));
        $(this).css('background-color', '#'+colours[rating]);
    });
});